﻿using System;
using System.Collections.Generic;
using RRRSRoguelike.Helpers;
using RRRSRoguelike.Helpers.Visualizer;
using RRRSRoguelikeEngine;

namespace RRRSRoguelike.Screens
{
	/// <summary>
	/// Abstract implementation of a screen.
	/// </summary>
	public abstract class Screen : IScreen
	{
		protected List<Panel> PanelList;
		protected Boolean active = true;

		protected bool drawPanels = true;

		public Screen()
		{
			PanelList = new List<Panel>();
		}

		public virtual void Show()
		{

		}

		public void Clear()
		{
			ConsoleSpecific.Clear();
			foreach (var panel in PanelList)
				panel.Clear();
		}

		public void WaitKey()
		{
			ConsoleSpecific.ReadKey(true);
		}
	}
}
